package com.dupt.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dupt.common.annotation.Excel;
import com.dupt.common.core.domain.BaseEntity;

/**
 * 物料序列号对象 dupt_material_serial
 * 
 * @author zhuanyu.sun
 * @date 2025-08-26
 */
public class MaterialSerial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料序列号ID */
    private Long materialSerialId;

    /** 物料明细表ID */
    @Excel(name = "物料明细表ID")
    private String materialDetialId;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNo;

    /** 在库状态（1：在库，2：出库） */
    @Excel(name = "在库状态", readConverterExp = "1=：在库，2：出库")
    private String status;

    /** 当前位置 */
    @Excel(name = "当前位置")
    private String currentPos;

    /** 原始位置 */
    @Excel(name = "原始位置")
    private String originalPos;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 使用ID */
    private Long usedId;

    public void setMaterialSerialId(Long materialSerialId) 
    {
        this.materialSerialId = materialSerialId;
    }

    public Long getMaterialSerialId() 
    {
        return materialSerialId;
    }

    public void setMaterialDetialId(String materialDetialId)
    {
        this.materialDetialId = materialDetialId;
    }

    public String getMaterialDetialId()
    {
        return materialDetialId;
    }

    public void setSerialNo(String serialNo) 
    {
        this.serialNo = serialNo;
    }

    public String getSerialNo() 
    {
        return serialNo;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCurrentPos(String currentPos) 
    {
        this.currentPos = currentPos;
    }

    public String getCurrentPos() 
    {
        return currentPos;
    }

    public void setOriginalPos(String originalPos) 
    {
        this.originalPos = originalPos;
    }

    public String getOriginalPos() 
    {
        return originalPos;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setUsedId(Long usedId)
    {
        this.usedId = usedId;
    }

    public Long getUsedId()
    {
        return usedId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("materialSerialId", getMaterialSerialId())
            .append("materialDetialId", getMaterialDetialId())
            .append("serialNo", getSerialNo())
            .append("status", getStatus())
            .append("currentPos", getCurrentPos())
            .append("originalPos", getOriginalPos())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("usedId", getUsedId())
            .toString();
    }
}
